//首页
const first = dq(".contentBody .first")
//内容
const content = dq(".contentBody .content")
let isFirst = true
//点击首页
Listener("#index", "click", () => {
	if (isFirst) return
	first.style.display = "block"
	content.style.display = "none"
	isFirst = true
})
//点击每条目录
AllListener(".left div ul li", "click", item => {
	const text = item.children[0].innerText
	first.style.display = "none"
	content.style.display = "block"
	isFirst = false
	selectiveRendering(text)
})

//点击下载
Listener("#downloadFile", "click", () => {
	location.href = "https://gitee.com/yyhb-wjx/personal_projects/releases/download/v1.1/YHBTool.js"
})

//根据左侧列表内容调用响应的渲染方法
function selectiveRendering(text) {
	switch (text) {
		case "userInput":
			userInput_Render()
			break
		case "方法简写":
			simplify_Render()
			break
		case "Log":
			Log_Render()
			break
		case "formatSecond()":
			formatSecond_Render()
			break
		case "Digit":
			console.log("")
			break
		case "Str":
			console.log("")
			break
		case "Color":
			console.log("")
			break
		case "Timer":
			console.log("")
			break
		case "FormatDate":
			console.log("")
			break
		case "ax":
			console.log("")
			break
		case "Modal":
			console.log("")
			break
		case "form":
			console.log("")
			break
		case "Object 原型方法":
			console.log("")
			break
		case "css":
			console.log("")
			break
		case "事件绑定":
			console.log("")
			break
		case "renderContent()":
			console.log("")
			break
		case "local":
			console.log("")
			break
		case "session":
			console.log("")
			break
		case "mapTable()":
			console.log("")
			break
		case "randomToken()":
			console.log("")
			break
		case "charArr":
			console.log("")
			break
		case "Module":
			console.log("")
			break
		case "drag()":
			console.log("")
			break
		case "prohibitSelection()":
			console.log("")
			break
	}
}
